package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author 30254
 * creadtedate:2018/8/19
 */

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@Table(name = "lab_role")
public class Role extends BaseModel {

    @Builder
    public Role(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, String code, String name, String perm, String remark) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.code = code;
        this.name = name;
        this.perm = perm;
        this.remark = remark;
    }

    @Column
    private String code;
    @Column
    private String name;
    @Column
    private String perm;
    @Column
    private String remark;
}
